package com.atguigu.gmallre.mock.factory;


import com.atguigu.gmallre.mock.bean.OrderDetailActivity;
import com.atguigu.gmallre.mock.bean.OrderDetailCoupon;
import com.atguigu.gmallre.mock.service.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ClearService {

    @Autowired
    OrderInfoService orderInfoService;
    @Autowired
    OrderDetailService orderDetailService;

    @Autowired
    CartInfoService cartInfoService;

    @Autowired
    CommentInfoService commentInfoService;

    @Autowired
    FavorInfoService favorInfoService;

    @Autowired
    CouponUseService couponUseService;
    @Autowired
    ActivityOrderService activityOrderService;
    @Autowired
    OrderDetailCouponService orderDetailCouponService;

    @Autowired
    PaymentInfoService paymentInfoService;


    @Autowired
    UserInfoService userInfoService;



    @Autowired
    OrderRefundInfoService orderRefundInfoService;

    @Autowired
    RefundPaymentService refundPaymentService;

    @Autowired
    OrderStatusLogService orderStatusLogService;

    @Autowired
    LogService logService;

    public  void clearBusi(){
        orderInfoService.removeWithCache();
        orderDetailService.removeWithCache();
        paymentInfoService.removeWithCache();
        couponUseService.removeWithCache();
        activityOrderService.removeWithCache();
        orderDetailCouponService.removeWithCache();
        commentInfoService.removeWithCache();
        favorInfoService.removeWithCache();
        orderRefundInfoService.removeWithCache();
        refundPaymentService.removeWithCache();
        orderStatusLogService.removeWithCache();
        cartInfoService.removeWithCache();
        logService.remove(null);

    }




}
